<link rel="stylesheet" href="/style/jmdf.css" media="all">
<#setting number_format="#.##">
<table border="2" style="width: 98%;border-color: white;text-align: center;color: white;font-size: 23px;margin-top: 60px">
    <thead>
    <tr>
        <th rowspan="2">小区名称</th>
        <th rowspan="2">车位类型</th>
        <th colspan="2">总数</th>
        <th colspan="2" class="jmdf-color-red">已选</th>
        <th colspan="2" class="jmdf-color-green">剩余</th>
    </tr>
    <tr>
        <th>车位数</th>
        <th>面积</th>
        <th class="jmdf-color-red">车位数</th>
        <th class="jmdf-color-red">面积</th>
        <th class="jmdf-color-green">车位数</th>
        <th class="jmdf-color-green">面积</th>
    </tr>
    </thead>
    <tbody>
    <#if (carLotTypeDataMap??)>
        <#assign allcarLotTotal= 0/>
        <#assign allcarLotAreaTotal= 0/>
        <#assign allChoosecarLotTotal= 0/>
        <#assign allChoosecarLotAreaTotal= 0/>
        <#assign allUnChoosecarLotTotal= 0/>
        <#assign allUnChoosecarLotAreaTotal= 0/>
        <#list carLotTypeDataMap?keys as azProjectId>
            <#assign azProject=azProjectMap[azProjectId]/>
            <#assign itemMap=carLotTypeDataMap[azProjectId]/>
            <#if (itemMap??)>
                <#assign itemMapLen=itemMap?size/>
                <#list itemMap?keys as carLotType>
                    <#assign dataMap=itemMap[carLotType]/>
                    <#assign allcarLotTotal= allcarLotTotal+dataMap["carLotTotal"]/>
                    <#assign allcarLotAreaTotal= allcarLotAreaTotal+dataMap["carLotAreaTotal"]/>
                    <#assign allChoosecarLotTotal= allChoosecarLotTotal+dataMap["chooseCarLotTotal"]/>
                    <#assign allChoosecarLotAreaTotal= allChoosecarLotAreaTotal+dataMap["chooseCarLotAreaTotal"]/>
                    <#assign allUnChoosecarLotTotal= allUnChoosecarLotTotal+dataMap["unChooseCarLotTotal"]/>
                    <#assign allUnChoosecarLotAreaTotal= allUnChoosecarLotAreaTotal+dataMap["unChooseCarLotAreaTotal"]/>
                    <tr>
                        <td>${(azProject.projectName)!}</td>
                        <td>${carLotTypeMap[carLotType]}</td>
                        <td>${dataMap["carLotTotal"]}</td>
                        <td>${dataMap["carLotAreaTotal"]}</td>
                        <td class="jmdf-color-red">${dataMap["chooseCarLotTotal"]}</td>
                        <td class="jmdf-color-red">${dataMap["chooseCarLotAreaTotal"]}</td>
                        <td class="jmdf-color-green">${dataMap["unChooseCarLotTotal"]}</td>
                        <td class="jmdf-color-green">${dataMap["unChooseCarLotAreaTotal"]}</td>
                    </tr>
                </#list>
            </#if>
        </#list>
        <tr>
            <td colspan="2">合计</td>
            <td>${allcarLotTotal}</td>
            <td>${allcarLotAreaTotal}</td>
            <td class="jmdf-color-red">${allChoosecarLotTotal}</td>
            <td class="jmdf-color-red">${allChoosecarLotAreaTotal}</td>
            <td class="jmdf-color-green">${allUnChoosecarLotTotal}</td>
            <td class="jmdf-color-green">${allUnChoosecarLotAreaTotal}</td>
        </tr>
    </#if>
    </tbody>
</table>